package com.litong.rms.service.impl;

import java.util.List;

import com.litong.rms.bean.RoleAuth;
import com.litong.rms.dao.RoleAuthDao;
import com.litong.rms.service.RoleAuthService;

public class RoleAuthServiceImpl implements RoleAuthService {
	
	private RoleAuthDao roleAuthDao;
	
	public void addRoleAuth(RoleAuth roleAuth) {
		roleAuthDao.addRoleAuth(roleAuth);

	}

	public void deleteRoleAuth(RoleAuth roleAuth) {
		roleAuthDao.deleteRoleAuth(roleAuth);

	}

	/*删除根据角色Id角色权限*/
	public void deleteRoleAuthByRoleId(int roleId){
		roleAuthDao.deleteRoleAuthByRoleId(roleId);
	}
	
	public RoleAuth findRoleAuth(RoleAuth roleAuth) {
		
		return roleAuthDao.findRoleAuth(roleAuth);
	}

	public <T> List<T> getRoleAuthList() {
		// TODO Auto-generated method stub
		return null;
	}

	public void updateRoleAuth(RoleAuth roleAuth) {
		// TODO Auto-generated method stub

	}

	
	public <T> List<T> getRoleAuthList(int roleId) {
		
		return roleAuthDao.getRoleAuthList(roleId);
	}
	
	public void setRoleAuthDao(RoleAuthDao roleAuthDao) {
		this.roleAuthDao = roleAuthDao;
	}

	public RoleAuthDao getRoleAuthDao() {
		return roleAuthDao;
	}



}
